package com.google.code.securityflow.ast

import com.google.code.securityflow.graphviz.{GraphvizTreeNode, GraphvizTree}
import util.Random

case class Block(statements: List[Statement]) {

  def toGraphviz: GraphvizTree = {
    GraphvizTreeNode(Random.nextInt(Int.MaxValue), "Block", statements.map(s => s.toGraphviz));
  }

}